package com.sina.shop.core.exception.serviceexception;

import com.sina.shop.core.exception.ShopCustomException;
import com.sina.shop.util.ResultCode;

/**
 * 服务不可用异常
 */
public class ServiceUnAvailableException extends ShopCustomException {

    private String serviceId;


    public String getServiceId() {
        return serviceId;
    }

    public ServiceUnAvailableException(String serviceId) {
        super(ResultCode.serverNotUse);
        this.serviceId = serviceId;
    }

    public ServiceUnAvailableException(ResultCode resultCode) {
        super(resultCode);
    }

    public ServiceUnAvailableException(ResultCode resultCode, String message) {
        super(resultCode, message);
    }

    public ServiceUnAvailableException(ResultCode resultCode, Throwable cause) {
        super(resultCode, cause);
    }

    public ServiceUnAvailableException(ResultCode resultCode, String message, Throwable cause) {
        super(resultCode, message, cause);
    }
}
